
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="keywords" content="讯都" />
	<meta name="description" content="讯都" />
	<title>讯都新闻详情</title>
	<link rel="stylesheet" href="../css/css/base.css" type="text/css"/>
	<link rel="stylesheet" href="../css/css/style.css" type="text/css"/>
	<link rel="stylesheet" type="text/css" href="../css/css/fonts/iconfont.css">
	<link rel="stylesheet" type="text/css" href="../css/css/ishare.css">
</head>
<body>
	<?php
		require('tance.php');
	?>
	<div class="menu-index">
		<div class="content">
			<div class="menu-list ovfl_hid">
				<a href="index.php" class="active">首页</a>
				<?php
					require('conn.php');
					$desc=$db->query("select * from type_admin where parentid=0");
					while($row=$desc->fetch_assoc()){
				?>
				<a href="module.php?id=<?php echo $row['id'];?>&&pid=<?php echo $row['id'];?>&&sid=<?php echo $row['id'];?>"><?php echo $row['type_name'];?></a>
			<?php }?>
			</div>
		</div>
	</div>
	<div class="main">
		<div class="content ovfl_hid" style="padding-bottom: 20px;">
			<img src="../css/img/banner_title2.png" class="wid_dis banner-little"/>
			
			<div class="module-left left">
				<p>
					<a href="#">讯都首页</a>
					&gt;
					<a href="#">新车快报</a>
					&gt;
					<a href="#">正文</a>
				</p>
				<?php 
					require('conn.php');
					$id= $_GET['id'];
					$taright=$db->query("select * from ".$new." where id=".$id."");
					while ($biao=$taright->fetch_assoc()) {
					// var_dump($biao);
				?>
				<h1 class="color_53 lh_20em"><?php echo $biao['title']?></h1>
				<p class="lh_20em br_b1E5 ovfl_hid"><span class="left fs12_6"><?php echo $biao['pubtime']?></span><a href="#" class="right fs12_6">举报</a></p>
				<?php }?>
				<div class="detail-main-box ovfl_hid">
					<div class="detail-main-left left">
						<br/>
						<p>我要分享</p>
						<!--// 引入HTML脚本-->
						<div class="iShare iShare1">
						    <a href="#" class="iShare_qzone"><i class="iconfont qzone">&#xe610;</i></a>
						    <a href="#" class="iShare_tencent"><i class="iconfont tencent" style="vertical-align: -2px;">&#xe608;</i></a>
						    <a href="#" class="iShare_weibo"><i class="iconfont weibo">&#xe609;</i></a>
						    <a href="#" class="iShare_wechat"><i class="iconfont wechat" style="vertical-align: -2px;">&#xe613;</i></a>
						    <a href="#" class="iShare_facebook"><i class="iconfont facebook" style="vertical-align: 1px;">&#xe601;</i></a>
						    <a href="#" class="iShare_googleplus"><i class="iconfont googleplus" style="vertical-align: -1px;">&#xe60b;</i></a>
						    <a href="#" class="iShare_linkedin"><i class="iconfont linkedin" style="vertical-align: 2px;">&#xe607;</i></a>
						</div>
					</div>
					<?php 
						$id= $_GET['id'];
						$desc=$db->query("select ".$new.".title,".$new.".pubtime,news_data.content,news_data.img from ".$new.",news_data where news_data.news_id=".$id." group by content");
						while ($content=$desc->fetch_assoc()) {
						// var_dump($content);die;
					?>
					<div class="detail-main-right right">
						<p><?php echo $content['content'];?></p>
					</div>
					<?php }?>
				</div>
				<div class="clear detail-recommend-box">
					<h2 class="subtitle today ovfl_hid">为您推荐<a href="#" class="right fs12_6">更多</a></h2>
					<ul class="detail-recommend-list ovfl_hid">
						<li class="detail-recommend-item">
							<div class="detail-recommend-img">
								<img src="../css/img/0026Bxt7HMp4.png" class="wid_dis" />
							</div>
							<p class="detail-recommend-info ellipsis">汽车介绍内容1</p>
						</li>
						<li class="detail-recommend-item">
							<div class="detail-recommend-img">
								<img src="../css/img/0026Bxt7HMp4.png" class="wid_dis" />
							</div>
							<p class="detail-recommend-info ellipsis">汽车介绍内容2</p>
						</li>
						<li class="detail-recommend-item">
							<div class="detail-recommend-img">
								<img src="../css/img/0026Bxt7HMp4.png" class="wid_dis" />
							</div>
							<p class="detail-recommend-info ellipsis">汽车介绍内容3</p>
						</li>
						<li class="detail-recommend-item">
							<div class="detail-recommend-img">
								<img src="../css/img/0026Bxt7HMp4.png" class="wid_dis" />
							</div>
							<p class="detail-recommend-info ellipsis">汽车介绍内容4</p>
						</li>
					</ul>
					<ul class="submain-news-list">
					<?php 	
						$tid= $_GET['tid'];
						// var_dump($id);
						$taright=$db->query("select * from ".$new." where superior_id=".$tid." limit 10");
						while ($biao=$taright->fetch_assoc()) {
						// var_dump($biao);
						if($biao['recommended']==1){
					?>
						<li class="ellipsis"><a href="detail.php?id=<?php echo $biao['id'];?>&&tid=<?php echo $tid;?>&&sid=<?php echo $tid;?>"><?php echo $biao['title'];?></a></li>
					<?php }}?>
					</ul>
				</div>
			</div>
			<?php
				require('right.php');
			?>
		</div>
	</div>
	<?php
		require('bottom.php');
	?>
	<script type="text/javascript" src="../css/js/jquery-1.11.1.js" ></script>
	<script type="text/javascript" src="../css/js/iShare_tidy.js" ></script>
	<script type="text/javascript">
		//子元素需要指定如下的类名：
		//iShare_qq         : 'QQ好友',
		//iShare_qzone      : 'QQ空间',
		//iShare_tencent    : '腾讯微博',
		//iShare_weibo      : '新浪微博',
		//iShare_wechat     : '微信',
		//iShare_douban     : '豆瓣',
		//iShare_renren         : '人人',
		//iShare_youdaonote : '有道笔记',
		//iShare_linkedin   : 'Linkedin',
		//iShare_facebook   : 'Facebook',
		//iShare_twitter    : 'Twitter',
		//iShare_googleplus : 'Google+',
		//iShare_pinterest  : 'Pinterest',
		//iShare_tumblr         : 'Tumblr'
		//插件会根据类名自动处理，如果存在不包含上述类名的子元素，该元素就不作任何处理。
		// 配置全局变量iShare_config
		iShare_config = {container:'.iShare1',config:{
	        title: '分享标题',
	        description: '这是分享描述文本',
	        url: 'https://github.com/zhansingsong',
	        WXoptions:{
	            evenType: 'click',
	            isTitleVisibility: true,
	            title: '二维码标题',
	            isTipVisibility: true,
	            tip: '二维码描述文本',
	            bgcolor: '#2BAD13',
	        }
	    }};
	</script>
</body>
</html>
